home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1998-05-21 | 7.3 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
100%
| file
| Emacs/XEmacs v20 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 14 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 75 73 74 69 6e 62 |piled by| justinb|
|00000020| 40 65 62 6f 6e 79 2e 63 | 72 61 79 2e 63 6f 6d 20 |@ebony.c|ray.com |
|00000030| 6f 6e 20 4d 6f 6e 20 4d | 61 72 20 20 39 20 31 33 |on Mon M|ar 9 13|
|00000040| 3a 30 34 3a 34 37 20 31 | 39 39 38 0a 3b 3b 3b 20 |:04:47 1|998.;;; |
|00000050| 66 72 6f 6d 20 66 69 6c | 65 20 2f 68 6f 6d 65 2f |from fil|e /home/|
|00000060| 61 73 70 65 6e 30 37 2f | 6a 75 73 74 69 6e 62 2f |aspen07/|justinb/|
|00000070| 72 6f 6f 74 73 2f 66 72 | 65 65 77 61 72 65 2f 78 |roots/fr|eeware/x|
|00000080| 65 6d 61 63 73 2f 32 30 | 2e 33 2f 78 65 6d 61 63 |emacs/20|.3/xemac|
|00000090| 73 2d 32 30 2e 33 2f 6c | 69 73 70 2f 77 33 2f 75 |s-20.3/l|isp/w3/u|
|000000a0| 72 6c 2d 61 75 74 68 2e | 65 6c 0a 3b 3b 3b 20 65 |rl-auth.|el.;;; e|
|000000b0| 6d 61 63 73 20 76 65 72 | 73 69 6f 6e 20 32 30 2e |macs ver|sion 20.|
|000000c0| 34 20 22 45 6d 65 72 61 | 6c 64 22 20 58 45 6d 61 |4 "Emera|ld" XEma|
|000000d0| 63 73 20 20 4c 75 63 69 | 64 2e 0a 3b 3b 3b 20 62 |cs Luci|d..;;; b|
|000000e0| 79 74 65 63 6f 6d 70 20 | 76 65 72 73 69 6f 6e 20 |ytecomp |version |
|000000f0| 32 2e 32 35 20 58 45 6d | 61 63 73 3b 20 32 32 2d |2.25 XEm|acs; 22-|
|00000100| 4d 61 72 2d 39 36 2e 0a | 3b 3b 3b 20 6f 70 74 69 |Mar-96..|;;; opti|
|00000110| 6d 69 7a 61 74 69 6f 6e | 20 69 73 20 6f 6e 2e 0a |mization| is on..|
|00000120| 3b 3b 3b 20 74 68 69 73 | 20 66 69 6c 65 20 75 73 |;;; this| file us|
|00000130| 65 73 20 6f 70 63 6f 64 | 65 73 20 77 68 69 63 68 |es opcod|es which|
|00000140| 20 64 6f 20 6e 6f 74 20 | 65 78 69 73 74 20 69 6e | do not |exist in|
|00000150| 20 45 6d 61 63 73 20 31 | 39 2e 0a 0a 28 69 66 20 | Emacs 1|9...(if |
|00000160| 28 61 6e 64 20 28 62 6f | 75 6e 64 70 20 27 65 6d |(and (bo|undp 'em|
|00000170| 61 63 73 2d 76 65 72 73 | 69 6f 6e 29 0a 09 20 28 |acs-vers|ion).. (|
|00000180| 6f 72 20 28 61 6e 64 20 | 28 62 6f 75 6e 64 70 20 |or (and |(boundp |
|00000190| 27 65 70 6f 63 68 3a 3a | 76 65 72 73 69 6f 6e 29 |'epoch::|version)|
|000001a0| 20 65 70 6f 63 68 3a 3a | 76 65 72 73 69 6f 6e 29 | epoch::|version)|
|000001b0| 0a 09 20 20 20 20 20 28 | 73 74 72 69 6e 67 2d 6c |.. (|string-l|
|000001c0| 65 73 73 70 20 65 6d 61 | 63 73 2d 76 65 72 73 69 |essp ema|cs-versi|
|000001d0| 6f 6e 20 22 32 30 22 29 | 29 29 0a 20 20 20 20 28 |on "20")|)). (|
|000001e0| 65 72 72 6f 72 20 22 60 | 75 72 6c 2d 61 75 74 68 |error "`|url-auth|
|000001f0| 2e 65 6c 27 20 77 61 73 | 20 63 6f 6d 70 69 6c 65 |.el' was| compile|
|00000200| 64 20 66 6f 72 20 45 6d | 61 63 73 20 32 30 22 29 |d for Em|acs 20")|
|00000210| 29 0a 0a 28 6f 72 20 28 | 62 6f 75 6e 64 70 20 27 |)..(or (|boundp '|
|00000220| 63 75 72 72 65 6e 74 2d | 6c 6f 61 64 2d 6c 69 73 |current-|load-lis|
|00000230| 74 29 20 28 73 65 74 71 | 20 63 75 72 72 65 6e 74 |t) (setq| current|
|00000240| 2d 6c 6f 61 64 2d 6c 69 | 73 74 20 6e 69 6c 29 29 |-load-li|st nil))|
|00000250| 0a 0a 0a 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |...(byte|-code ".|
|00000260| c1 21 88 c0 c2 21 87 22 | 20 5b 72 65 71 75 69 72 |.!...!."| [requir|
|00000270| 65 20 75 72 6c 2d 76 61 | 72 73 20 75 72 6c 2d 70 |e url-va|rs url-p|
|00000280| 61 72 73 65 5d 20 32 29 | 0a 23 40 34 33 20 53 74 |arse] 2)|.#@43 St|
|00000290| 72 69 6e 67 20 74 6f 20 | 75 73 65 66 75 6c 6c 79 |ring to |usefully|
|000002a0| 20 70 72 6f 6d 70 74 20 | 66 6f 72 20 61 20 75 73 | prompt |for a us|
|000002b0| 65 72 6e 61 6d 65 2e 1f | 0a 28 64 65 66 61 6c 69 |ername..|.(defali|
|000002c0| 61 73 20 27 75 72 6c 2d | 61 75 74 68 2d 75 73 65 |as 'url-|auth-use|
|000002d0| 72 2d 70 72 6f 6d 70 74 | 20 23 5b 28 75 72 6c 20 |r-prompt| #[(url |
|000002e0| 72 65 61 6c 6d 29 20 22 | c0 09 ae 89 c2 c3 0c 21 |realm) "|.......!|
|000002f0| c5 20 c6 5a 5c 22 c7 51 | 87 22 20 5b 22 55 73 65 |. .Z\".Q|." ["Use|
|00000300| 72 6e 61 6d 65 20 5b 66 | 6f 72 20 22 20 72 65 61 |rname [f|or " rea|
|00000310| 6c 6d 20 75 72 6c 2d 74 | 72 75 6e 63 61 74 65 2d |lm url-t|runcate-|
|00000320| 75 72 6c 2d 66 6f 72 2d | 76 69 65 77 69 6e 67 20 |url-for-|viewing |
|00000330| 75 72 6c 2d 72 65 63 72 | 65 61 74 65 2d 75 72 6c |url-recr|eate-url|
|00000340| 20 75 72 6c 20 77 69 6e | 64 6f 77 2d 77 69 64 74 | url win|dow-widt|
|00000350| 68 20 33 30 20 22 5d 3a | 20 22 5d 20 35 20 28 23 |h 30 "]:| "] 5 (#|
|00000360| 24 20 2e 20 36 35 34 29 | 5d 29 0a 28 62 79 74 65 |$ . 654)|]).(byte|
|00000370| 2d 63 6f 64 65 20 22 c0 | c1 4e c2 73 ac 85 c3 c4 |-code ".|.N.s....|
|00000380| c0 5c 22 88 c5 c0 c1 c6 | 23 87 22 20 5b 75 72 6c |.\".....|#." [url|
|00000390| 2d 61 75 74 68 2d 75 73 | 65 72 2d 70 72 6f 6d 70 |-auth-us|er-promp|
|000003a0| 74 20 62 79 74 65 2d 6f | 70 74 69 6d 69 7a 65 72 |t byte-o|ptimizer|
|000003b0| 20 28 6e 69 6c 20 62 79 | 74 65 2d 63 6f 6d 70 69 | (nil by|te-compi|
|000003c0| 6c 65 2d 69 6e 6c 69 6e | 65 2d 65 78 70 61 6e 64 |le-inlin|e-expand|
|000003d0| 29 20 65 72 72 6f 72 20 | 22 25 73 20 61 6c 72 65 |) error |"%s alre|
|000003e0| 61 64 79 20 68 61 73 20 | 61 20 62 79 74 65 2d 6f |ady has |a byte-o|
|000003f0| 70 74 69 6d 69 7a 65 72 | 2c 20 63 61 6e 27 74 20 |ptimizer|, can't |
|00000400| 6d 61 6b 65 20 69 74 20 | 69 6e 6c 69 6e 65 22 20 |make it |inline" |
|00000410| 70 75 74 20 62 79 74 65 | 2d 63 6f 6d 70 69 6c 65 |put byte|-compile|
|00000420| 2d 69 6e 6c 69 6e 65 2d | 65 78 70 61 6e 64 5d 20 |-inline-|expand] |
|00000430| 34 29 0a 23 40 32 33 37 | 20 57 68 65 72 65 20 75 |4).#@237| Where u|
|00000440| 73 65 72 6e 61 6d 65 73 | 20 61 6e 64 20 70 61 73 |sernames| and pas|
|00000450| 73 77 6f 72 64 73 20 61 | 72 65 20 73 74 6f 72 65 |swords a|re store|
|00000460| 64 2e 20 20 49 74 73 20 | 76 61 6c 75 65 20 69 73 |d. Its |value is|
|00000470| 20 61 6e 20 61 73 73 6f | 63 20 6c 69 73 74 20 6f | an asso|c list o|
|00000480| 66 0a 61 73 73 6f 63 20 | 6c 69 73 74 73 2e 20 20 |f.assoc |lists. |
|00000490| 54 68 65 20 66 69 72 73 | 74 20 61 73 73 6f 63 20 |The firs|t assoc |
|000004a0| 6c 69 73 74 20 69 73 20 | 6b 65 79 65 64 20 62 79 |list is |keyed by|
|000004b0| 20 74 68 65 20 73 65 72 | 76 65 72 20 6e 61 6d 65 | the ser|ver name|
|000004c0| 2e 20 20 54 68 65 20 63 | 64 72 20 6f 66 0a 74 68 |. The c|dr of.th|
|000004d0| 69 73 20 69 73 20 61 6e | 20 61 73 73 6f 63 20 6c |is is an| assoc l|
|000004e0| 69 73 74 20 62 61 73 65 | 64 20 6f 6e 20 74 68 65 |ist base|d on the|
|000004f0| 20 27 64 69 72 65 63 74 | 6f 72 79 27 20 73 70 65 | 'direct|ory' spe|
|00000500| 63 69 66 69 65 64 20 62 | 79 20 74 68 65 20 75 72 |cified b|y the ur|
|00000510| 6c 20 77 65 20 61 72 65 | 0a 6c 6f 6f 6b 69 6e 67 |l we are|.looking|
|00000520| 20 75 70 2e 1f 0a 28 64 | 65 66 76 61 72 20 75 72 | up...(d|efvar ur|
|00000530| 6c 2d 62 61 73 69 63 2d | 61 75 74 68 2d 73 74 6f |l-basic-|auth-sto|
|00000540| 72 61 67 65 20 6e 69 6c | 20 28 23 24 20 2e 20 31 |rage nil| (#$ . 1|
|00000550| 30 38 31 29 29 0a 23 40 | 33 37 35 20 47 65 74 20 |081)).#@|375 Get |
|00000560| 74 68 65 20 75 73 65 72 | 6e 61 6d 65 2f 70 61 73 |the user|name/pas|
|00000570| 73 77 6f 72 64 20 66 6f | 72 20 74 68 65 20 73 70 |sword fo|r the sp|
|00000580| 65 63 69 66 69 65 64 20 | 55 52 4c 2e 0a 49 66 20 |ecified |URL..If |
|00000590| 6f 70 74 69 6f 6e 61 6c | 20 61 72 67 75 6d 65 6e |optional| argumen|
|000005a0| 74 20 50 52 4f 4d 50 54 | 20 69 73 20 6e 6f 6e 2d |t PROMPT| is non-|
|000005b0| 6e 69 6c 2c 20 61 73 6b | 20 66 6f 72 20 74 68 65 |nil, ask| for the|
|000005c0| 20 75 73 65 72 6e 61 6d | 65 2f 70 61 73 73 77 6f | usernam|e/passwo|
|000005d0| 72 64 0a 74 6f 20 75 73 | 65 20 66 6f 72 20 74 68 |rd.to us|e for th|
|000005e0| 65 20 75 72 6c 20 61 6e | 64 20 69 74 73 20 64 65 |e url an|d its de|
|000005f0| 73 63 65 6e 64 61 6e 74 | 73 2e 20 20 49 66 20 6f |scendant|s. If o|
|00000600| 70 74 69 6f 6e 61 6c 20 | 74 68 69 72 64 20 61 72 |ptional |third ar|
|00000610| 67 75 6d 65 6e 74 0a 4f | 56 45 52 57 52 49 54 45 |gument.O|VERWRITE|
|00000620| 20 69 73 20 6e 6f 6e 2d | 6e 69 6c 2c 20 6f 76 65 | is non-|nil, ove|
|00000630| 72 77 72 69 74 65 20 74 | 68 65 20 6f 6c 64 20 75 |rwrite t|he old u|
|00000640| 73 65 72 6e 61 6d 65 2f | 70 61 73 73 77 6f 72 64 |sername/|password|
|00000650| 20 70 61 69 72 20 69 66 | 20 69 74 0a 69 73 20 66 | pair if| it.is f|
|00000660| 6f 75 6e 64 20 69 6e 20 | 74 68 65 20 61 73 73 6f |ound in |the asso|
|00000670| 63 20 6c 69 73 74 2e 20 | 20 49 66 20 52 45 41 4c |c list. | If REAL|
|00000680| 4d 20 69 73 20 73 70 65 | 63 69 66 69 65 64 2c 20 |M is spe|cified, |
|00000690| 75 73 65 20 74 68 61 74 | 20 61 73 20 74 68 65 20 |use that| as the |
|000006a0| 72 65 61 6c 6d 0a 69 6e | 73 74 65 61 64 20 6f 66 |realm.in|stead of|
|000006b0| 20 74 68 65 20 70 61 74 | 68 6e 61 6d 65 20 69 6e | the pat|hname in|
|000006c0| 68 65 72 69 74 61 6e 63 | 65 20 6d 65 74 68 6f 64 |heritanc|e method|
|000006d0| 2e 1f 0a 28 64 65 66 61 | 6c 69 61 73 20 27 75 72 |...(defa|lias 'ur|
|000006e0| 6c 2d 62 61 73 69 63 2d | 61 75 74 68 20 23 5b 28 |l-basic-|auth #[(|
|000006f0| 75 72 6c 20 26 6f 70 74 | 69 6f 6e 61 6c 20 70 72 |url &opt|ional pr|
|00000700| 6f 6d 70 74 20 6f 76 65 | 72 77 72 69 74 65 20 72 |ompt ove|rwrite r|
|00000710| 65 61 6c 6d 20 61 72 67 | 73 29 20 22 08 3b ab 85 |ealm arg|s) ".;..|
|00000720| c1 08 21 aa 81 08 89 1a | c3 48 1c 5c 6e c5 48 ae |..!.....|.H.\n.H.|
|00000730| 90 5c 6e c6 48 ab 8a c7 | 5c 6e c8 48 0e 09 5c 22 |.\n.H...|\n.H..\"|
|00000740| a3 ae 81 ca 1e 0b 5c 6e | cc 48 1e 0d ce 1e 0f ce |......\n|.H......|
|00000750| 1e 10 ce 1e 11 ce 1e 12 | ce 1e 13 0c d4 0e 0b 51 |........|.......Q|
|00000760| 14 0e 15 ab 84 0e 15 aa | 8f d6 d7 0e 0d 5c 22 ab |........|.....\".|
|00000770| 84 0e 0d aa 84 d8 0e 0d | 21 16 0d c7 0c 0e 19 5c |........|!......\|
|00000780| 22 a3 16 11 0e 1a ab c0 | 0e 11 ac bc db 08 0e 15 |".......|........|
|00000790| 1e 15 18 dc 0e 15 ae 89 | dd de 08 21 df 20 e0 5a |........|...!. .Z|
|000007a0| 5c 22 e1 51 2a e2 20 5c | 22 16 0f 0e 23 e4 21 16 |\".Q*. \|"...#.!.|
|000007b0| 10 0c 0e 0d e5 e6 e7 0e | 0f 0e 10 23 21 89 16 12 |........|...#!...|
|000007c0| 42 44 0e 19 42 16 19 82 | 47 01 0e 11 83 44 01 c7 |BD..B...|G....D..|
|000007d0| 0e 0d 0e 11 5c 22 a3 89 | 16 12 ac bf d6 e8 0e 0d |....\"..|........|
|000007e0| 5c 22 ab b8 0e 11 ab b4 | 0e 12 ac b0 0e 11 40 40 |\"......|......@@|
|000007f0| 16 13 d6 e8 0e 13 5c 22 | ab 95 0e 0d 47 0e 13 47 |......\"|....G..G|
|00000800| 59 ab 92 0e 13 0e 0d c8 | 0e 13 47 4f 98 ab 86 0e |Y.......|..GO....|
|00000810| 11 40 41 16 12 0e 11 41 | 89 16 11 ac 4c 0e 12 ac |.@A....A|....L...|
|00000820| 84 0e 1a ac 84 0e 29 ab | c6 db 08 0e 15 1e 15 18 |......).|........|
|00000830| dc 0e 15 ae 89 dd de 08 | 21 df 20 e0 5a 5c 22 e1 |........|!. .Z\".|
|00000840| 51 2a e2 20 5c 22 16 0f | 0e 23 e4 21 16 10 e5 e6 |Q*. \"..|.#.!....|
|00000850| e7 0e 0f 0e 10 23 21 16 | 12 c7 0c 0e 19 5c 22 89 |.....#!.|.....\".|
|00000860| 16 11 0e 0d 0e 12 42 0e | 11 41 42 a1 88 aa 83 ce |......B.|.AB.....|
|00000870| 16 12 0e 12 ab 86 ea 0e | 12 50 16 12 0e 12 2e 09 |........|.P......|
|00000880| 87 22 20 5b 75 72 6c 20 | 75 72 6c 2d 67 65 6e 65 |." [url |url-gene|
|00000890| 72 69 63 2d 70 61 72 73 | 65 2d 75 72 6c 20 68 72 |ric-pars|e-url hr|
|000008a0| 65 66 20 33 20 73 65 72 | 76 65 72 20 34 20 38 20 |ef 3 ser|ver 4 8 |
|000008b0| 61 73 73 6f 63 20 30 20 | 75 72 6c 2d 64 65 66 61 |assoc 0 |url-defa|
|000008c0| 75 6c 74 2d 70 6f 72 74 | 73 20 22 38 30 22 20 70 |ult-port|s "80" p|
|000008d0| 6f 72 74 20 35 20 70 61 | 74 68 20 6e 69 6c 20 75 |ort 5 pa|th nil u|
|000008e0| 73 65 72 20 70 61 73 73 | 20 62 79 73 65 72 76 20 |ser pass| byserv |
|000008f0| 72 65 74 76 61 6c 20 64 | 61 74 61 20 22 3a 22 20 |retval d|ata ":" |
|00000900| 72 65 61 6c 6d 20 73 74 | 72 69 6e 67 2d 6d 61 74 |realm st|ring-mat|
|00000910| 63 68 20 22 2f 24 22 20 | 75 72 6c 2d 62 61 73 65 |ch "/$" |url-base|
|00000920| 70 61 74 68 20 75 72 6c | 2d 62 61 73 69 63 2d 61 |path url|-basic-a|
|00000930| 75 74 68 2d 73 74 6f 72 | 61 67 65 20 70 72 6f 6d |uth-stor|age prom|
|00000940| 70 74 20 72 65 61 64 2d | 73 74 72 69 6e 67 20 22 |pt read-|string "|
|00000950| 55 73 65 72 6e 61 6d 65 | 20 5b 66 6f 72 20 22 20 |Username| [for " |
|00000960| 75 72 6c 2d 74 72 75 6e | 63 61 74 65 2d 75 72 6c |url-trun|cate-url|
|00000970| 2d 66 6f 72 2d 76 69 65 | 77 69 6e 67 20 75 72 6c |-for-vie|wing url|
|00000980| 2d 72 65 63 72 65 61 74 | 65 2d 75 72 6c 20 77 69 |-recreat|e-url wi|
|00000990| 6e 64 6f 77 2d 77 69 64 | 74 68 20 33 30 20 22 5d |ndow-wid|th 30 "]|
|000009a0| 3a 20 22 20 75 73 65 72 | 2d 72 65 61 6c 2d 6c 6f |: " user|-real-lo|
|000009b0| 67 69 6e 2d 6e 61 6d 65 | 20 75 72 6c 2d 70 61 73 |gin-name| url-pas|
|000009c0| 73 77 64 2d 65 6e 74 72 | 79 2d 66 75 6e 63 20 22 |swd-entr|y-func "|
|000009d0| 50 61 73 73 77 6f 72 64 | 3a 20 22 20 62 61 73 65 |Password|: " base|
|000009e0| 36 34 2d 65 6e 63 6f 64 | 65 20 66 6f 72 6d 61 74 |64-encod|e format|
|000009f0| 20 22 25 73 3a 25 73 22 | 20 22 2f 22 20 6f 76 65 | "%s:%s"| "/" ove|
|00000a00| 72 77 72 69 74 65 20 22 | 42 61 73 69 63 20 22 5d |rwrite "|Basic "]|
|00000a10| 20 38 20 28 23 24 20 2e | 20 31 33 37 32 29 5d 29 | 8 (#$ .| 1372)])|
|00000a20| 0a 23 40 32 33 37 20 57 | 68 65 72 65 20 75 73 65 |.#@237 W|here use|
|00000a30| 72 6e 61 6d 65 73 20 61 | 6e 64 20 70 61 73 73 77 |rnames a|nd passw|
|00000a40| 6f 72 64 73 20 61 72 65 | 20 73 74 6f 72 65 64 2e |ords are| stored.|
|00000a50| 20 20 49 74 73 20 76 61 | 6c 75 65 20 69 73 20 61 | Its va|lue is a|
|00000a60| 6e 20 61 73 73 6f 63 20 | 6c 69 73 74 20 6f 66 0a |n assoc |list of.|
|00000a70| 61 73 73 6f 63 20 6c 69 | 73 74 73 2e 20 20 54 68 |assoc li|sts. Th|
|00000a80| 65 20 66 69 72 73 74 20 | 61 73 73 6f 63 20 6c 69 |e first |assoc li|
|00000a90| 73 74 20 69 73 20 6b 65 | 79 65 64 20 62 79 20 74 |st is ke|yed by t|
|00000aa0| 68 65 20 73 65 72 76 65 | 72 20 6e 61 6d 65 2e 20 |he serve|r name. |
|00000ab0| 20 54 68 65 20 63 64 72 | 20 6f 66 0a 74 68 69 73 | The cdr| of.this|
|00000ac0| 20 69 73 20 61 6e 20 61 | 73 73 6f 63 20 6c 69 73 | is an a|ssoc lis|
|00000ad0| 74 20 62 61 73 65 64 20 | 6f 6e 20 74 68 65 20 27 |t based |on the '|
|00000ae0| 64 69 72 65 63 74 6f 72 | 79 27 20 73 70 65 63 69 |director|y' speci|
|00000af0| 66 69 65 64 20 62 79 20 | 74 68 65 20 75 72 6c 20 |fied by |the url |
|00000b00| 77 65 20 61 72 65 0a 6c | 6f 6f 6b 69 6e 67 20 75 |we are.l|ooking u|
|00000b10| 70 2e 1f 0a 28 64 65 66 | 76 61 72 20 75 72 6c 2d |p...(def|var url-|
|00000b20| 64 69 67 65 73 74 2d 61 | 75 74 68 2d 73 74 6f 72 |digest-a|uth-stor|
|00000b30| 61 67 65 20 6e 69 6c 20 | 28 23 24 20 2e 20 32 35 |age nil |(#$ . 25|
|00000b40| 39 39 29 29 0a 23 40 34 | 37 20 43 72 65 61 74 65 |99)).#@4|7 Create|
|00000b50| 20 61 20 6b 65 79 20 66 | 6f 72 20 64 69 67 65 73 | a key f|or diges|
|00000b60| 74 20 61 75 74 68 65 6e | 74 69 63 61 74 69 6f 6e |t authen|tication|
|00000b70| 20 6d 65 74 68 6f 64 1f | 0a 28 64 65 66 61 6c 69 | method.|.(defali|
|00000b80| 61 73 20 27 75 72 6c 2d | 64 69 67 65 73 74 2d 61 |as 'url-|digest-a|
|00000b90| 75 74 68 2d 63 72 65 61 | 74 65 2d 6b 65 79 20 23 |uth-crea|te-key #|
|00000ba0| 5b 28 75 73 65 72 6e 61 | 6d 65 20 70 61 73 73 77 |[(userna|me passw|
|00000bb0| 6f 72 64 20 72 65 61 6c | 6d 20 6d 65 74 68 6f 64 |ord real|m method|
|00000bc0| 20 75 72 69 29 20 22 08 | 3b ab 85 c1 08 21 aa 81 | uri) ".|;....!..|
|00000bd0| 08 1a c3 0c c5 0e 06 c5 | 0e 07 b0 05 21 1e 08 c3 |........|....!...|
|00000be0| 0e 09 c5 5c 6e ca 48 51 | 21 1e 0b 0e 08 0e 0b 2b |...\n.HQ|!......+|
|00000bf0| 44 87 22 20 5b 75 72 69 | 20 75 72 6c 2d 67 65 6e |D." [uri| url-gen|
|00000c00| 65 72 69 63 2d 70 61 72 | 73 65 2d 75 72 6c 20 69 |eric-par|se-url i|
|00000c10| 6e 66 6f 20 6d 64 35 20 | 75 73 65 72 6e 61 6d 65 |nfo md5 |username|
|00000c20| 20 22 3a 22 20 72 65 61 | 6c 6d 20 70 61 73 73 77 | ":" rea|lm passw|
|00000c30| 6f 72 64 20 61 31 20 6d | 65 74 68 6f 64 20 35 20 |ord a1 m|ethod 5 |
|00000c40| 61 32 5d 20 36 20 28 23 | 24 20 2e 20 32 38 39 30 |a2] 6 (#|$ . 2890|
|00000c50| 29 5d 29 0a 23 40 33 36 | 30 20 47 65 74 20 74 68 |)]).#@36|0 Get th|
|00000c60| 65 20 75 73 65 72 6e 61 | 6d 65 2f 70 61 73 73 77 |e userna|me/passw|
|00000c70| 6f 72 64 20 66 6f 72 20 | 74 68 65 20 73 70 65 63 |ord for |the spec|
|00000c80| 69 66 69 65 64 20 55 52 | 4c 2e 0a 49 66 20 6f 70 |ified UR|L..If op|
|00000c90| 74 69 6f 6e 61 6c 20 61 | 72 67 75 6d 65 6e 74 20 |tional a|rgument |
|00000ca0| 50 52 4f 4d 50 54 20 69 | 73 20 6e 6f 6e 2d 6e 69 |PROMPT i|s non-ni|
|00000cb0| 6c 2c 20 61 73 6b 20 66 | 6f 72 20 74 68 65 20 75 |l, ask f|or the u|
|00000cc0| 73 65 72 6e 61 6d 65 2f | 70 61 73 73 77 6f 72 64 |sername/|password|
|00000cd0| 0a 74 6f 20 75 73 65 20 | 66 6f 72 20 74 68 65 20 |.to use |for the |
|00000ce0| 75 72 6c 20 61 6e 64 20 | 69 74 73 20 64 65 73 63 |url and |its desc|
|00000cf0| 65 6e 64 61 6e 74 73 2e | 20 20 49 66 20 6f 70 74 |endants.| If opt|
|00000d00| 69 6f 6e 61 6c 20 74 68 | 69 72 64 20 61 72 67 75 |ional th|ird argu|
|00000d10| 6d 65 6e 74 0a 4f 56 45 | 52 57 52 49 54 45 20 69 |ment.OVE|RWRITE i|
|00000d20| 73 20 6e 6f 6e 2d 6e 69 | 6c 2c 20 6f 76 65 72 77 |s non-ni|l, overw|
|00000d30| 72 69 74 65 20 74 68 65 | 20 6f 6c 64 20 75 73 65 |rite the| old use|
|00000d40| 72 6e 61 6d 65 2f 70 61 | 73 73 77 6f 72 64 20 70 |rname/pa|ssword p|
|00000d50| 61 69 72 20 69 66 20 69 | 74 0a 69 73 20 66 6f 75 |air if i|t.is fou|
|00000d60| 6e 64 20 69 6e 20 74 68 | 65 20 61 73 73 6f 63 20 |nd in th|e assoc |
|00000d70| 6c 69 73 74 2e 20 20 49 | 66 20 52 45 41 4c 4d 20 |list. I|f REALM |
|00000d80| 69 73 20 73 70 65 63 69 | 66 69 65 64 2c 20 75 73 |is speci|fied, us|
|00000d90| 65 20 74 68 61 74 20 61 | 73 20 74 68 65 20 72 65 |e that a|s the re|
|00000da0| 61 6c 6d 0a 69 6e 73 74 | 65 61 64 20 6f 66 20 68 |alm.inst|ead of h|
|00000db0| 6f 73 74 6e 61 6d 65 3a | 70 6f 72 74 6e 75 6d 2e |ostname:|portnum.|
|00000dc0| 1f 0a 28 64 65 66 61 6c | 69 61 73 20 27 75 72 6c |..(defal|ias 'url|
|00000dd0| 2d 64 69 67 65 73 74 2d | 61 75 74 68 20 23 5b 28 |-digest-|auth #[(|
|00000de0| 75 72 6c 20 26 6f 70 74 | 69 6f 6e 61 6c 20 70 72 |url &opt|ional pr|
|00000df0| 6f 6d 70 74 20 6f 76 65 | 72 77 72 69 74 65 20 72 |ompt ove|rwrite r|
|00000e00| 65 61 6c 6d 20 61 72 67 | 73 29 20 22 08 85 9c 01 |ealm arg|s) "....|
|00000e10| 09 3b ab 85 c2 09 21 aa | 81 09 89 1b c4 48 1d 0b |.;....!.|.....H..|
|00000e20| c6 48 ae 90 0b c7 48 ab | 8a c8 0b c9 48 0e 5c 6e |.H....H.|....H.\n|
|00000e30| 5c 22 a3 ae 81 cb 1e 0c | 0b cd 48 1e 0e cf 1e 10 |\"......|..H.....|
|00000e40| cf 1e 11 cf 1e 12 cf 1e | 13 cf 1e 14 0e 15 ab 84 |........|........|
|00000e50| 0e 15 aa 8f d6 d7 0e 0e | 5c 22 ab 84 0e 0e aa 84 |........|\"......|
|00000e60| d8 0e 0e 21 16 0e 0d d9 | 0e 0c 51 15 c8 0d 0e 1a |...!....|..Q.....|
|00000e70| 5c 22 a3 16 12 0e 1b ab | c8 0e 12 ac c4 dc 09 0e |\"......|........|
|00000e80| 15 1e 15 19 dd 0e 15 ae | 89 de df 09 21 e0 20 e1 |........|....!. .|
|00000e90| 5a 5c 22 e2 51 2a e3 20 | 5c 22 16 10 0e 24 e5 21 |Z\".Q*. |\"...$.!|
|00000ea0| 16 11 0d 0e 0e 0e 10 e6 | 0e 10 0e 11 0e 15 0e 27 |........|.......'|
|00000eb0| ae 81 e8 09 25 42 89 16 | 13 42 44 0e 1a 42 16 1a |....%B..|.BD..B..|
|00000ec0| 82 5e 01 0e 12 83 5b 01 | c8 0e 0e 0e 12 5c 22 a3 |.^....[.|.....\".|
|00000ed0| 89 16 13 ac bf d6 e9 0e | 0e 5c 22 ab b8 0e 12 ab |........|.\".....|
|00000ee0| b4 0e 13 ac b0 0e 12 40 | 40 16 14 d6 e9 0e 14 5c |.......@|@......\|
|00000ef0| 22 ab 95 0e 0e 47 0e 14 | 47 59 ab 92 0e 14 0e 0e |"....G..|GY......|
|00000f00| c9 0e 14 47 4f 98 ab 86 | 0e 12 40 41 16 13 0e 12 |...GO...|..@A....|
|00000f10| 41 89 16 12 ac 4c 0e 13 | ac 84 0e 1b ac 84 0e 2a |A....L..|.......*|
|00000f20| ab d1 dc 09 0e 15 1e 15 | 19 dd 0e 15 ae 89 de df |........|........|
|00000f30| 09 21 e0 20 e1 5a 5c 22 | e2 51 2a e3 20 5c 22 16 |.!. .Z\"|.Q*. \".|
|00000f40| 10 0e 24 e5 21 16 11 0e | 10 e6 0e 10 0e 11 0e 15 |..$.!...|........|
|00000f50| 0e 27 ae 81 e8 09 25 42 | 89 16 13 16 13 c8 0d 0e |.'....%B|........|
|00000f60| 1a 5c 22 89 16 12 0e 0e | 0e 13 42 0e 12 41 42 a1 |.\".....|..B..AB.|
|00000f70| 88 aa 83 cf 16 13 0e 13 | ad b8 c8 eb 08 5c 22 a3 |........|.....\".|
|00000f80| ae 81 ec c8 ed 08 5c 22 | a3 ae 81 ec 1e 2e 1e 2f |......\"|......./|
|00000f90| f0 f1 f2 f3 51 0e 13 40 | 0e 15 0e 2f 0b cd 48 f4 |....Q..@|.../..H.|
|00000fa0| 0e 13 41 40 d9 0e 2f d9 | f5 0e 13 38 b0 05 21 0e |..A@../.|...8..!.|
|00000fb0| 2e 26 07 2a 2e 09 87 22 | 20 5b 61 72 67 73 20 75 |.&.*..."| [args u|
|00000fc0| 72 6c 20 75 72 6c 2d 67 | 65 6e 65 72 69 63 2d 70 |rl url-g|eneric-p|
|00000fd0| 61 72 73 65 2d 75 72 6c | 20 68 72 65 66 20 33 20 |arse-url| href 3 |
|00000fe0| 73 65 72 76 65 72 20 34 | 20 38 20 61 73 73 6f 63 |server 4| 8 assoc|
|00000ff0| 20 30 20 75 72 6c 2d 64 | 65 66 61 75 6c 74 2d 70 | 0 url-d|efault-p|
|00001000| 6f 72 74 73 20 22 38 30 | 22 20 70 6f 72 74 20 35 |orts "80|" port 5|
|00001010| 20 70 61 74 68 20 6e 69 | 6c 20 75 73 65 72 20 70 | path ni|l user p|
|00001020| 61 73 73 20 62 79 73 65 | 72 76 20 72 65 74 76 61 |ass byse|rv retva|
|00001030| 6c 20 64 61 74 61 20 72 | 65 61 6c 6d 20 73 74 72 |l data r|ealm str|
|00001040| 69 6e 67 2d 6d 61 74 63 | 68 20 22 2f 24 22 20 75 |ing-matc|h "/$" u|
|00001050| 72 6c 2d 62 61 73 65 70 | 61 74 68 20 22 3a 22 20 |rl-basep|ath ":" |
|00001060| 75 72 6c 2d 64 69 67 65 | 73 74 2d 61 75 74 68 2d |url-dige|st-auth-|
|00001070| 73 74 6f 72 61 67 65 20 | 70 72 6f 6d 70 74 20 72 |storage |prompt r|
|00001080| 65 61 64 2d 73 74 72 69 | 6e 67 20 22 55 73 65 72 |ead-stri|ng "User|
|00001090| 6e 61 6d 65 20 5b 66 6f | 72 20 22 20 75 72 6c 2d |name [fo|r " url-|
|000010a0| 74 72 75 6e 63 61 74 65 | 2d 75 72 6c 2d 66 6f 72 |truncate|-url-for|
|000010b0| 2d 76 69 65 77 69 6e 67 | 20 75 72 6c 2d 72 65 63 |-viewing| url-rec|
|000010c0| 72 65 61 74 65 2d 75 72 | 6c 20 77 69 6e 64 6f 77 |reate-ur|l window|
|000010d0| 2d 77 69 64 74 68 20 33 | 30 20 22 5d 3a 20 22 20 |-width 3|0 "]: " |
|000010e0| 75 73 65 72 2d 72 65 61 | 6c 2d 6c 6f 67 69 6e 2d |user-rea|l-login-|
|000010f0| 6e 61 6d 65 20 75 72 6c | 2d 70 61 73 73 77 64 2d |name url|-passwd-|
|00001100| 65 6e 74 72 79 2d 66 75 | 6e 63 20 22 50 61 73 73 |entry-fu|nc "Pass|
|00001110| 77 6f 72 64 3a 20 22 20 | 75 72 6c 2d 64 69 67 65 |word: " |url-dige|
|00001120| 73 74 2d 61 75 74 68 2d | 63 72 65 61 74 65 2d 6b |st-auth-|create-k|
|00001130| 65 79 20 75 72 6c 2d 72 | 65 71 75 65 73 74 2d 6d |ey url-r|equest-m|
|00001140| 65 74 68 6f 64 20 22 47 | 45 54 22 20 22 2f 22 20 |ethod "G|ET" "/" |
|00001150| 6f 76 65 72 77 72 69 74 | 65 20 22 6e 6f 6e 63 65 |overwrit|e "nonce|
|00001160| 22 20 22 6e 6f 6e 65 67 | 69 76 65 6e 22 20 22 6f |" "noneg|iven" "o|
|00001170| 70 61 71 75 65 22 20 6f | 70 61 71 75 65 20 6e 6f |paque" o|paque no|
|00001180| 6e 63 65 20 66 6f 72 6d | 61 74 20 22 44 69 67 65 |nce form|at "Dige|
|00001190| 73 74 20 75 73 65 72 6e | 61 6d 65 3d 5c 22 25 73 |st usern|ame=\"%s|
|000011a0| 5c 22 2c 20 72 65 61 6c | 6d 3d 5c 22 25 73 5c 22 |\", real|m=\"%s\"|
|000011b0| 2c 22 20 22 6e 6f 6e 63 | 65 3d 5c 22 25 73 5c 22 |," "nonc|e=\"%s\"|
|000011c0| 2c 20 75 72 69 3d 5c 22 | 25 73 5c 22 2c 22 20 22 |, uri=\"|%s\"," "|
|000011d0| 72 65 73 70 6f 6e 73 65 | 3d 5c 22 25 73 5c 22 2c |response|=\"%s\",|
|000011e0| 20 6f 70 61 71 75 65 3d | 5c 22 25 73 5c 22 22 20 | opaque=|\"%s\"" |
|000011f0| 6d 64 35 20 32 5d 20 31 | 34 20 28 23 24 20 2e 20 |md5 2] 1|4 (#$ . |
|00001200| 33 31 36 32 29 5d 29 0a | 23 40 31 30 35 20 41 20 |3162)]).|#@105 A |
|00001210| 6c 69 73 74 20 6f 66 20 | 74 68 65 20 72 65 67 69 |list of |the regi|
|00001220| 73 74 65 72 65 64 20 61 | 75 74 68 6f 72 69 7a 61 |stered a|uthoriza|
|00001230| 74 69 6f 6e 20 73 63 68 | 65 6d 65 73 20 61 6e 64 |tion sch|emes and|
|00001240| 20 76 61 72 69 6f 75 73 | 20 61 6e 64 20 73 75 6e | various| and sun|
|00001250| 64 72 79 0a 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |dry.info|rmation |
|00001260| 61 73 73 6f 63 69 61 74 | 65 64 20 77 69 74 68 20 |associat|ed with |
|00001270| 74 68 65 6d 2e 1f 0a 28 | 64 65 66 76 61 72 20 75 |them...(|defvar u|
|00001280| 72 6c 2d 72 65 67 69 73 | 74 65 72 65 64 2d 61 75 |rl-regis|tered-au|
|00001290| 74 68 2d 73 63 68 65 6d | 65 73 20 6e 69 6c 20 28 |th-schem|es nil (|
|000012a0| 23 24 20 2e 20 34 36 32 | 32 29 29 0a 23 40 31 30 |#$ . 462|2)).#@10|
|000012b0| 36 36 20 52 65 74 75 72 | 6e 20 61 6e 20 61 75 74 |66 Retur|n an aut|
|000012c0| 68 6f 72 69 7a 61 74 69 | 6f 6e 20 73 74 72 69 6e |horizati|on strin|
|000012d0| 67 20 73 75 69 74 61 62 | 6c 65 20 66 6f 72 20 75 |g suitab|le for u|
|000012e0| 73 65 20 69 6e 20 74 68 | 65 20 57 57 57 2d 41 75 |se in th|e WWW-Au|
|000012f0| 74 68 65 6e 74 69 63 61 | 74 65 0a 68 65 61 64 65 |thentica|te.heade|
|00001300| 72 20 69 6e 20 61 6e 20 | 48 54 54 50 2f 31 2e 30 |r in an |HTTP/1.0|
|00001310| 20 72 65 71 75 65 73 74 | 2e 0a 0a 55 52 4c 20 20 | request|...URL |
|00001320| 20 20 69 73 20 74 68 65 | 20 75 72 6c 20 79 6f 75 | is the| url you|
|00001330| 20 61 72 65 20 72 65 71 | 75 65 73 74 69 6e 67 20 | are req|uesting |
|00001340| 61 75 74 68 6f 72 69 7a | 61 74 69 6f 6e 20 74 6f |authoriz|ation to|
|00001350| 2e 20 20 54 68 69 73 20 | 63 61 6e 20 62 65 20 65 |. This |can be e|
|00001360| 69 74 68 65 72 20 61 0a | 20 20 20 20 20 20 20 73 |ither a.| s|
|00001370| 74 72 69 6e 67 20 72 65 | 70 72 65 73 65 6e 74 69 |tring re|presenti|
|00001380| 6e 67 20 74 68 65 20 55 | 52 4c 2c 20 6f 72 20 74 |ng the U|RL, or t|
|00001390| 68 65 20 70 61 72 73 65 | 64 20 72 65 70 72 65 73 |he parse|d repres|
|000013a0| 65 6e 74 61 74 69 6f 6e | 20 72 65 74 75 72 6e 65 |entation| returne|
|000013b0| 64 20 62 79 0a 20 20 20 | 20 20 20 20 60 75 72 6c |d by. | `url|
|000013c0| 2d 67 65 6e 65 72 69 63 | 2d 70 61 72 73 65 2d 75 |-generic|-parse-u|
|000013d0| 72 6c 27 0a 52 45 41 4c | 4d 20 20 69 73 20 74 68 |rl'.REAL|M is th|
|000013e0| 65 20 72 65 61 6c 6d 20 | 61 74 20 61 20 73 70 65 |e realm |at a spe|
|000013f0| 63 69 66 69 63 20 73 69 | 74 65 20 77 65 20 61 72 |cific si|te we ar|
|00001400| 65 20 6c 6f 6f 6b 69 6e | 67 20 66 6f 72 2e 20 20 |e lookin|g for. |
|00001410| 54 68 69 73 20 73 68 6f | 75 6c 64 20 62 65 20 61 |This sho|uld be a|
|00001420| 0a 20 20 20 20 20 20 20 | 73 74 72 69 6e 67 20 73 |. |string s|
|00001430| 70 65 63 69 66 79 69 6e | 67 20 74 68 65 20 65 78 |pecifyin|g the ex|
|00001440| 61 63 74 20 72 65 61 6c | 6d 2c 20 6f 72 20 6e 69 |act real|m, or ni|
|00001450| 6c 20 6f 72 20 74 68 65 | 20 73 79 6d 62 6f 6c 20 |l or the| symbol |
|00001460| 27 61 6e 79 27 20 74 6f | 0a 20 20 20 20 20 20 20 |'any' to|. |
|00001470| 73 70 65 63 69 66 79 20 | 74 68 61 74 20 74 68 65 |specify |that the|
|00001480| 20 66 69 6c 65 6e 61 6d | 65 20 70 6f 72 74 69 6f | filenam|e portio|
|00001490| 6e 20 6f 66 20 74 68 65 | 20 55 52 4c 20 73 68 6f |n of the| URL sho|
|000014a0| 75 6c 64 20 62 65 20 75 | 73 65 64 20 61 73 20 74 |uld be u|sed as t|
|000014b0| 68 65 0a 20 20 20 20 20 | 20 20 72 65 61 6c 6d 0a |he. | realm.|
|000014c0| 54 59 50 45 20 20 20 69 | 73 20 74 68 65 20 74 79 |TYPE i|s the ty|
|000014d0| 70 65 20 6f 66 20 61 75 | 74 68 65 6e 74 69 63 61 |pe of au|thentica|
|000014e0| 74 69 6f 6e 20 74 6f 20 | 62 65 20 72 65 74 75 72 |tion to |be retur|
|000014f0| 6e 65 64 2e 20 20 54 68 | 69 73 20 69 73 20 65 69 |ned. Th|is is ei|
|00001500| 74 68 65 72 20 61 20 73 | 74 72 69 6e 67 0a 20 20 |ther a s|tring. |
|00001510| 20 20 20 20 20 72 65 70 | 72 65 73 65 6e 74 69 6e | rep|resentin|
|00001520| 67 20 74 68 65 20 74 79 | 70 65 20 28 62 61 73 69 |g the ty|pe (basi|
|00001530| 63 2c 20 64 69 67 65 73 | 74 2c 20 65 74 63 29 2c |c, diges|t, etc),|
|00001540| 20 6f 72 20 6e 69 6c 20 | 6f 72 20 74 68 65 20 73 | or nil |or the s|
|00001550| 79 6d 62 6f 6c 20 27 61 | 6e 79 27 0a 20 20 20 20 |ymbol 'a|ny'. |
|00001560| 20 20 20 74 6f 20 73 70 | 65 63 69 66 79 20 74 68 | to sp|ecify th|
|00001570| 61 74 20 61 6e 79 20 61 | 75 74 68 65 6e 74 69 63 |at any a|uthentic|
|00001580| 61 74 69 6f 6e 20 69 73 | 20 61 63 63 65 70 74 61 |ation is| accepta|
|00001590| 62 6c 65 2e 20 20 49 66 | 20 72 65 71 75 65 73 74 |ble. If| request|
|000015a0| 69 6e 67 20 27 61 6e 79 | 27 0a 20 20 20 20 20 20 |ing 'any|'. |
|000015b0| 20 74 68 65 20 73 74 72 | 6f 6e 67 65 73 74 20 6d | the str|ongest m|
|000015c0| 61 74 63 68 69 6e 67 20 | 61 75 74 68 65 6e 74 69 |atching |authenti|
|000015d0| 63 61 74 69 6f 6e 20 77 | 69 6c 6c 20 62 65 20 72 |cation w|ill be r|
|000015e0| 65 74 75 72 6e 65 64 2e | 20 20 49 66 20 74 68 69 |eturned.| If thi|
|000015f0| 73 20 69 73 0a 20 20 20 | 20 20 20 20 77 72 6f 6e |s is. | wron|
|00001600| 67 2c 20 69 74 73 20 6e | 6f 20 62 69 67 20 64 65 |g, its n|o big de|
|00001610| 61 6c 2c 20 74 68 65 20 | 65 72 72 6f 72 20 66 72 |al, the |error fr|
|00001620| 6f 6d 20 74 68 65 20 73 | 65 72 76 65 72 20 77 69 |om the s|erver wi|
|00001630| 6c 6c 20 73 70 65 63 69 | 66 79 20 65 78 61 63 74 |ll speci|fy exact|
|00001640| 6c 79 0a 20 20 20 20 20 | 20 20 77 68 61 74 20 74 |ly. | what t|
|00001650| 79 70 65 20 6f 66 20 61 | 75 74 68 20 74 6f 20 75 |ype of a|uth to u|
|00001660| 73 65 0a 50 52 4f 4d 50 | 54 20 69 73 20 62 6f 6f |se.PROMP|T is boo|
|00001670| 6c 65 61 6e 20 2d 20 73 | 70 65 63 69 66 69 65 73 |lean - s|pecifies|
|00001680| 20 77 68 65 74 68 65 72 | 20 74 6f 20 61 73 6b 20 | whether| to ask |
|00001690| 74 68 65 20 75 73 65 72 | 20 66 6f 72 20 61 20 75 |the user| for a u|
|000016a0| 73 65 72 6e 61 6d 65 2f | 70 61 73 73 77 6f 72 64 |sername/|password|
|000016b0| 0a 20 20 20 20 20 20 20 | 69 66 20 6f 6e 65 20 63 |. |if one c|
|000016c0| 61 6e 6e 6f 74 20 62 65 | 20 66 6f 75 6e 64 20 69 |annot be| found i|
|000016d0| 6e 20 74 68 65 20 63 61 | 63 68 65 1f 0a 28 64 65 |n the ca|che..(de|
|000016e0| 66 61 6c 69 61 73 20 27 | 75 72 6c 2d 67 65 74 2d |falias '|url-get-|
|000016f0| 61 75 74 68 65 6e 74 69 | 63 61 74 69 6f 6e 20 23 |authenti|cation #|
|00001700| 5b 28 75 72 6c 20 72 65 | 61 6c 6d 20 74 79 70 65 |[(url re|alm type|
|00001710| 20 70 72 6f 6d 70 74 20 | 26 6f 70 74 69 6f 6e 61 | prompt |&optiona|
|00001720| 6c 20 61 72 67 73 29 20 | 22 08 ac 86 c1 c2 0b 5c |l args) |"......\|
|00001730| 22 a3 10 0c 3b ab 84 c5 | 0c 21 14 0e 06 ab 86 0e |"...;...|.!......|
|00001740| 06 c7 61 ab 8b c8 c9 ca | 0e 0b 5c 22 cc 5c 22 a2 |..a.....|..\".\".|
|00001750| a3 87 0e 06 39 ab 86 cd | 0e 06 21 16 06 c1 0e 06 |....9...|..!.....|
|00001760| 97 0e 0b 5c 22 a3 a2 89 | 1e 0e ad 99 cf 0e 0e 21 |...\"...|.......!|
|00001770| ad 93 0e 0e 0c 0e 10 89 | ad 88 0e 0e 0c d1 89 08 |........|........|
|00001780| 0b 25 08 0b 25 29 87 22 | 20 5b 72 65 61 6c 6d 20 |.%..%)."| [realm |
|00001790| 61 73 73 6f 63 20 22 72 | 65 61 6c 6d 22 20 61 72 |assoc "r|ealm" ar|
|000017a0| 67 73 20 75 72 6c 20 75 | 72 6c 2d 67 65 6e 65 72 |gs url u|rl-gener|
|000017b0| 69 63 2d 70 61 72 73 65 | 2d 75 72 6c 20 74 79 70 |ic-parse|-url typ|
|000017c0| 65 20 61 6e 79 20 73 6f | 72 74 20 6d 61 70 63 61 |e any so|rt mapca|
|000017d0| 72 20 23 5b 28 73 63 68 | 65 6d 65 29 20 22 c0 09 |r #[(sch|eme) "..|
|000017e0| 41 40 21 ab 8d 09 41 41 | 09 41 40 5c 6e c3 89 0c |A@!...AA|.A@\n...|
|000017f0| 24 42 87 c5 c3 42 87 22 | 20 5b 66 62 6f 75 6e 64 |$B...B."| [fbound|
|00001800| 70 20 73 63 68 65 6d 65 | 20 75 72 6c 20 6e 69 6c |p scheme| url nil|
|00001810| 20 72 65 61 6c 6d 20 30 | 5d 20 36 5d 20 75 72 6c | realm 0|] 6] url|
|00001820| 2d 72 65 67 69 73 74 65 | 72 65 64 2d 61 75 74 68 |-registe|red-auth|
|00001830| 2d 73 63 68 65 6d 65 73 | 20 23 5b 28 78 20 79 29 |-schemes| #[(x y)|
|00001840| 20 22 08 41 ac 82 c1 87 | 08 41 ab 86 5c 6e 41 ac | ".A....|.A..\nA.|
|00001850| 82 c3 87 08 41 ab 8a 5c | 6e 41 ab 86 08 40 5c 6e |....A..\|nA...@\n|
|00001860| 40 59 87 c1 87 22 20 5b | 78 20 6e 69 6c 20 79 20 |@Y..." [|x nil y |
|00001870| 74 5d 20 32 5d 20 73 79 | 6d 62 6f 6c 2d 6e 61 6d |t] 2] sy|mbol-nam|
|00001880| 65 20 73 63 68 65 6d 65 | 20 66 62 6f 75 6e 64 70 |e scheme| fboundp|
|00001890| 20 70 72 6f 6d 70 74 20 | 6e 69 6c 5d 20 31 30 20 | prompt |nil] 10 |
|000018a0| 28 23 24 20 2e 20 34 37 | 38 37 29 5d 29 0a 23 40 |(#$ . 47|87)]).#@|
|000018b0| 35 38 37 20 52 65 67 69 | 73 74 65 72 20 61 6e 20 |587 Regi|ster an |
|000018c0| 48 54 54 50 20 61 75 74 | 68 65 6e 74 69 63 61 74 |HTTP aut|henticat|
|000018d0| 69 6f 6e 20 6d 65 74 68 | 6f 64 2e 0a 0a 54 59 50 |ion meth|od...TYP|
|000018e0| 45 20 20 20 20 20 69 73 | 20 61 20 73 74 72 69 6e |E is| a strin|
|000018f0| 67 20 6f 72 20 73 79 6d | 62 6f 6c 20 73 70 65 63 |g or sym|bol spec|
|00001900| 69 66 79 69 6e 67 20 74 | 68 65 20 6e 61 6d 65 20 |ifying t|he name |
|00001910| 6f 66 20 74 68 65 20 6d | 65 74 68 6f 64 2e 20 20 |of the m|ethod. |
|00001920| 20 54 68 69 73 0a 20 20 | 20 20 20 20 20 20 20 73 | This. | s|
|00001930| 68 6f 75 6c 64 20 62 65 | 20 74 68 65 20 73 61 6d |hould be| the sam|
|00001940| 65 20 74 68 69 6e 67 20 | 79 6f 75 20 65 78 70 65 |e thing |you expe|
|00001950| 63 74 20 74 6f 20 67 65 | 74 20 72 65 74 75 72 6e |ct to ge|t return|
|00001960| 65 64 20 69 6e 20 61 6e | 20 41 75 74 68 65 6e 74 |ed in an| Authent|
|00001970| 69 63 61 74 65 0a 20 20 | 20 20 20 20 20 20 20 68 |icate. | h|
|00001980| 65 61 64 65 72 20 69 6e | 20 48 54 54 50 2f 31 2e |eader in| HTTP/1.|
|00001990| 30 20 2d 20 69 74 20 77 | 69 6c 6c 20 62 65 20 64 |0 - it w|ill be d|
|000019a0| 6f 77 6e 63 61 73 65 64 | 2e 0a 46 55 4e 43 54 49 |owncased|..FUNCTI|
|000019b0| 4f 4e 20 69 73 20 74 68 | 65 20 66 75 6e 63 74 69 |ON is th|e functi|
|000019c0| 6f 6e 20 74 6f 20 63 61 | 6c 6c 20 74 6f 20 67 65 |on to ca|ll to ge|
|000019d0| 74 20 74 68 65 20 61 75 | 74 68 6f 72 69 7a 61 74 |t the au|thorizat|
|000019e0| 69 6f 6e 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 2e |ion info|rmation.|
|000019f0| 20 20 54 68 69 73 0a 20 | 20 20 20 20 20 20 20 20 | This. | |
|00001a00| 64 65 66 61 75 6c 74 73 | 20 74 6f 20 60 75 72 6c |defaults| to `url|
|00001a10| 2d 3f 2d 61 75 74 68 27 | 2c 20 77 68 65 72 65 20 |-?-auth'|, where |
|00001a20| 3f 20 69 73 20 54 59 50 | 45 0a 52 41 54 49 4e 47 |? is TYP|E.RATING|
|00001a30| 20 20 20 61 20 72 61 74 | 69 6e 67 20 62 65 74 77 | a rat|ing betw|
|00001a40| 65 65 6e 20 31 20 61 6e | 64 20 31 30 20 6f 66 20 |een 1 an|d 10 of |
|00001a50| 74 68 65 20 73 74 72 65 | 6e 67 74 68 20 6f 66 20 |the stre|ngth of |
|00001a60| 74 68 65 20 61 75 74 68 | 65 6e 74 69 63 61 74 69 |the auth|enticati|
|00001a70| 6f 6e 2e 0a 20 20 20 20 | 20 20 20 20 20 54 68 69 |on.. | Thi|
|00001a80| 73 20 69 73 20 75 73 65 | 64 20 77 68 65 6e 20 61 |s is use|d when a|
|00001a90| 73 6b 69 6e 67 20 66 6f | 72 20 74 68 65 20 62 65 |sking fo|r the be|
|00001aa0| 73 74 20 61 75 74 68 65 | 6e 74 69 63 61 74 69 6f |st authe|nticatio|
|00001ab0| 6e 20 66 6f 72 20 61 20 | 73 70 65 63 69 66 69 63 |n for a |specific|
|00001ac0| 0a 20 20 20 20 20 20 20 | 20 20 55 52 4c 2e 20 20 |. | URL. |
|00001ad0| 54 68 65 20 69 74 65 6d | 20 77 69 74 68 20 74 68 |The item| with th|
|00001ae0| 65 20 68 69 67 68 65 73 | 74 20 72 61 74 69 6e 67 |e highes|t rating|
|00001af0| 20 69 73 20 72 65 74 75 | 72 6e 65 64 2e 1f 0a 28 | is retu|rned...(|
|00001b00| 64 65 66 61 6c 69 61 73 | 20 27 75 72 6c 2d 72 65 |defalias| 'url-re|
|00001b10| 67 69 73 74 65 72 2d 61 | 75 74 68 2d 73 63 68 65 |gister-a|uth-sche|
|00001b20| 6d 65 20 23 5b 28 74 79 | 70 65 20 26 6f 70 74 69 |me #[(ty|pe &opti|
|00001b30| 6f 6e 61 6c 20 66 75 6e | 63 74 69 6f 6e 20 72 61 |onal fun|ction ra|
|00001b40| 74 69 6e 67 29 20 22 08 | 3b ab 84 08 97 aa 8d 08 |ting) ".|;.......|
|00001b50| 39 ab 86 c1 08 21 97 aa | 83 c2 c3 21 18 0c ae 86 |9....!..|...!....|
|00001b60| c5 c6 08 c7 51 21 1c 0e | 08 ac 83 c9 aa 8d 0e 08 |....Q!..|........|
|00001b70| 3b ab 86 ca 0e 08 21 aa | 82 0e 08 1e 08 cb 08 0e |;.....!.|........|
|00001b80| 0c 5c 22 1e 0d ce 0c 21 | ac 88 cf d0 d1 d2 0c 5c |.\"....!|.......\|
|00001b90| 22 5c 22 88 0e 0d ab 91 | 0e 0d 0c 0e 08 42 a1 88 |"\".....|.....B..|
|00001ba0| cf d0 d1 d3 08 5c 22 5c | 22 aa 8c 08 0c 0e 08 42 |.....\"\|"......B|
|00001bb0| 42 0e 0c 42 89 16 0c 2c | 87 22 20 5b 74 79 70 65 |B..B...,|." [type|
|00001bc0| 20 73 79 6d 62 6f 6c 2d | 6e 61 6d 65 20 65 72 72 | symbol-|name err|
|00001bd0| 6f 72 20 22 42 61 64 20 | 63 61 6c 6c 20 74 6f 20 |or "Bad |call to |
|00001be0| 60 75 72 6c 2d 72 65 67 | 69 73 74 65 72 2d 61 75 |`url-reg|ister-au|
|00001bf0| 74 68 2d 73 63 68 65 6d | 65 27 22 20 66 75 6e 63 |th-schem|e'" func|
|00001c00| 74 69 6f 6e 20 69 6e 74 | 65 72 6e 20 22 75 72 6c |tion int|ern "url|
|00001c10| 2d 22 20 22 2d 61 75 74 | 68 22 20 72 61 74 69 6e |-" "-aut|h" ratin|
|00001c20| 67 20 32 20 73 74 72 69 | 6e 67 2d 74 6f 2d 69 6e |g 2 stri|ng-to-in|
|00001c30| 74 20 61 73 73 6f 63 20 | 75 72 6c 2d 72 65 67 69 |t assoc |url-regi|
|00001c40| 73 74 65 72 65 64 2d 61 | 75 74 68 2d 73 63 68 65 |stered-a|uth-sche|
|00001c50| 6d 65 73 20 6e 6f 64 65 | 20 66 62 6f 75 6e 64 70 |mes node| fboundp|
|00001c60| 20 75 72 6c 2d 77 61 72 | 6e 20 73 65 63 75 72 69 | url-war|n securi|
|00001c70| 74 79 20 66 6f 72 6d 61 | 74 20 22 2c 20 62 75 74 |ty forma|t ", but|
|00001c80| 20 69 74 20 69 73 20 6e | 6f 74 20 61 20 66 75 6e | it is n|ot a fun|
|00001c90| 63 74 69 6f 6e 21 22 20 | 22 52 65 70 6c 61 63 69 |ction!" |"Replaci|
|00001ca0| 6e 67 20 61 75 74 68 6f | 72 69 7a 61 74 69 6f 6e |ng autho|rization|
|00001cb0| 20 6d 65 74 68 6f 64 20 | 60 25 73 27 20 2d 20 74 | method |`%s' - t|
|00001cc0| 68 69 73 20 63 6f 75 6c | 64 20 62 65 20 62 61 64 |his coul|d be bad|
|00001cd0| 2e 22 5d 20 35 20 28 23 | 24 20 2e 20 36 33 32 34 |."] 5 (#|$ . 6324|
|00001ce0| 29 5d 29 0a 28 64 65 66 | 61 6c 69 61 73 20 27 75 |)]).(def|alias 'u|
|00001cf0| 72 6c 2d 61 75 74 68 2d | 72 65 67 69 73 74 65 72 |rl-auth-|register|
|00001d00| 65 64 20 23 5b 28 73 63 | 68 65 6d 65 29 20 22 c0 |ed #[(sc|heme) ".|
|00001d10| 09 5c 6e 5c 22 87 22 20 | 5b 61 73 73 6f 63 20 73 |.\n\"." |[assoc s|
|00001d20| 63 68 65 6d 65 20 75 72 | 6c 2d 72 65 67 69 73 74 |cheme ur|l-regist|
|00001d30| 65 72 65 64 2d 61 75 74 | 68 2d 73 63 68 65 6d 65 |ered-aut|h-scheme|
|00001d40| 73 5d 20 33 5d 29 0a 28 | 70 72 6f 76 69 64 65 20 |s] 3]).(|provide |
|00001d50| 27 75 72 6c 61 75 74 68 | 29 0a |'urlauth|). |
+--------+-------------------------+-------------------------+--------+--------+